Thx to El_Barto and webba for some more great ideas here.
Q: How the heck do i make an addon?
A: Well the addon idea is based on the new /alias command that khaled so
kindly gave us with mirc 4.5?+
You can define new aliases by doing /alias <aliasname> <alias commands here>
Now keep in mind the /load command is PLAYING the addon as a commands file.
So a file with say:
alias cls { clear }
Would be played as a command and thus ADDING that alias to your alias ini.
Also by playing the addon as a command authors can echo that it is loading
and check for %ver support etc.
This is all fine and dandy but if youll notice some other lil tweaking is
needed to make a successful addon. The way mirc is now it interperts all the
evaluators immediatly. Like if you add an alias like:
alias test { say $1 was a test }
Mirc will add to your alias ini:
alias???=test say was a test
Notice the $1 is not in there! Well with $chr(?) you can work around this
very easily. :P
I will show you an example from webba's wkick.mirc addon:
echo 6 $active <-WK-> Now loading WKiCKS.mirc...
/alias wk1 me looks at $chr(36) $+ 1 And Shake's His Head... $chr(124) say YOU'RE A KID, THIS DON'T LOOK LIKE #DUMBKIDS TO ME!@ $chr(124) kick $chr(35) $chr(36) $+ 1 WKiCKS)( KiDDy KiCK
/alias unloadwk alias wk1 $chr(124) alias unloadwk $chr(124) echo 6 <-WK-> WKiCKS Unloaded succesfully.
echo 6 $active <-WK-> WKiCKS Loaded SUCCESSFULLY, to unload type /unloadwk.
Very simply put everything you want to do CAN be done.
Q: This /alias command how do we delete the aliases we add to our addons?
A: Well as an addon author if you do an alias as i mentioned before:
alias cls { clear }
It is now in the alias ini. To remove simply do:
alias cls
And that would remove that particular alias.
So when writing and UNLOAD alias
it might look as so:
/unloadtest alias cls $chr(124) alias test
Let me explain a lil simpler - $chr(124) is the | character since you cant
play the | as a command it has to be added as $chr(124)
Also that unloadtest alias did two things
deleted the alias cls
and deleted the alias test
Q: In my addon how do i check for and add to %ver if it exists?
A: Ill show some small examples of how to add to and error check for %VER.
if %ver == $null { play stop }
The above obviously says if %ver does not exist dont load the addon.
if blah.mirc !isin %ver { %ver = %ver $chr(43) blah.mirc by bleh }
The above says if blah.mirc is not in the %ver reply go ahead and append to
the %ver version reply variable.
Non compliant scripts get this from my addons:
if %ver == $null { echo 4 Sorry +geek+ dont like nonaddon compliant scripts...GET the addon.faQ and add support! Get the faQ at http://www.geocities.com/TimesSquare/3873/irc.html | play stop }
Q: What are some of the limitations the addons and mirc have?
A: Well good question. Heres what i can tell you so far.
You have to replace all internal evaluators and strings with $chr(#)
Like even $active for example has to be written in the addon as $chr(36) $+ active
And in some cases (depending on where the evaluator fits) even $+
has to be replaced as $chr(36) $+ +
I think you get the idea. If something is not working and you cant figure out
why $chr(#) is probably the answer.
Q: What other things can i add to my script to make it nice?
A: A lotta ircii scripts have ascii's of there logo. They are nice looking
way to announce your script is loaded and a good way to include credits
and help instructions. A WELL WRITTEN addon is what ppl want. Include help
and the UNLOAD MUST UNDO ALL CHANGES DONE or its useless ppl wont like it
or load it again. This also revives mircs younger days when ppl were pumped
about just irc in general. Stupid lil fun addons are what i am looking for
there isnt that many around. Of course war addons are always NIZE too. ;)
Possibly a dalnet/undernet addon. An addon to have all the eggdrop commands
and kick addons are fun. Theres a number of possibilities there is no limit.
I hope you take the time to check out the usefullness of addons and
making mirc a more friendly and more powerful irc environment.
- peace [x|x] & webba
You can always find the latest of this faQ and addons at: